package com.daoeping.action;

import java.util.List;

import com.daoeping.domain.JsonData;
import com.daoeping.domain.Page;
import com.daoeping.domain.TableData;
import com.daoeping.service.UserService;
import com.daoeping.util.User;
import com.opensymphony.xwork2.ActionSupport;

public class TestAction extends ActionSupport{

	private static final long serialVersionUID = 2976579196125107315L;
	private UserService userService;
	private User user;
	private List<User> userlist ;
	private Page page;
	private TableData tableData;
	private JsonData jsonData;
	
	public JsonData getJsonData() {
		return jsonData;
	}

	public void setJsonData(JsonData jsonData) {
		this.jsonData = jsonData;
	}

	public TableData getTableData() {
		return tableData;
	}

	public void setTableData(TableData tableData) {
		this.tableData = tableData;
	}

	public Page getPage() {
		return page;
	}

	public void setPage(Page page) {
		this.page = page;
	}

	public List<User> getUserlist() {
		return userlist;
	}

	public void setUserlist(List<User> userlist) {
		this.userlist = userlist;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public UserService getUserService() {
		return userService;
	}

	public void setUserService(UserService userService) {
		this.userService = userService;
	}

	public String addUser()throws Exception{
		//this.userService.addUser(user);
		return "index";
	}
	
/*	public String findAllUser()throws Exception{
		tableData.setSelect("*"); 
		tableData.setWhere("");
		tableData.setTableName("usr_user");
		jsonData = new JsonData();
		this.userService.pageUser(page , tableData , jsonData);
		return "index";
	}*/
	
	public String removeUser()throws Exception{
		//this.userService.removeUser(user);
		return "index";
	}


}
